package crmdna.keyvaluestore;

import static crmdna.common.AssertUtils.ensureNotNull;

import java.util.List;
import java.util.Map;


public class KeyValueStore {

  public enum KeyType {
    MANDRILL_MAIL_ID
  }

  static Map<String, Object> get(String client, KeyType keyType, List<String> keys) {

    // TODO: ensure valid client

    ensureNotNull(keyType, "keyType is null");

    return KeyValueStoreCore.get(client, keyType.toString(), keys);
  }

  static void put(String client, KeyType keyType, Map<String, Object> keysAndValues) {

    // TODO: ensure valid client
    ensureNotNull(keyType, "keyType is null");

    KeyValueStoreCore.put(client, keyType.toString(), keysAndValues);
  }
}
